package com.syn.michat.im.service;

import com.syn.michat.im.model.MessageEntity;
import com.syn.michat.pojo.OfflineMsg;
import com.syn.michat.util.exception.ClientException;

import java.io.IOException;
import java.util.List;

public interface MessageService {

    public void sendMsg(String senderId, String targetId, String msgType) throws Exception;

    public void saveOfflineMsg(String packageStr, MessageEntity msg) throws ClientException;

    public List<OfflineMsg> findByReceiverId(String receiverId, int status) throws ClientException;

    public void updateStatus(int id, int status) throws ClientException;

}
